package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.OtherOfficeDetailBean;

/**
 * Created by K on 2018/9/11.
 * des: 考核汇总
 */
public class MissionRegisterAdapter extends BaseQuickAdapter<OtherOfficeDetailBean> {

    public MissionRegisterAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_mission_register;
    }

    @Override
    protected void convert(BaseViewHolder holder, OtherOfficeDetailBean item) {
        holder.setText(R.id.tv_num, (holder.getAdapterPosition() + 1) + "");
        holder.setText(R.id.tv_bei_kaohe, item.getTitle());
        holder.setText(R.id.tv_kaohe, item.getExeUserNames());
        holder.setText(R.id.tv_score, item.getUrgent());
        holder.setText(R.id.tv_gangwei, item.getReportDate());
    }
}
